<template>
  <el-menu
      default-active="1"
      class="el-menu-demo"
      mode="horizontal"
      @select="handleSelect"
  >
    <el-menu-item index="1" @click="toMoney">我捐的钱</el-menu-item>
    <el-menu-item index="2" @click="toGoods">我捐的物</el-menu-item>
  </el-menu>
  <router-view></router-view>
</template>

<script>
export default {
  name: "UserDoinate",
  methods: {
    toMoney() {
      this.$router.push("/front/userInfo/donate/donateMoney")
    },
    toGoods() {
      this.$router.push("/front/userInfo/donate/donateGoods")
    },
  }
}
</script>

<style>

</style>